﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditCurs.ascx.cs" Inherits="IEWebSite.Administration.EditCurs" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<style type="text/css">
    .style1
    {
        height: 30px;
    }
</style>
<asp:SqlDataSource ID="cursSqlGetCiclu" runat="server" ConnectionString="<%$ ConnectionStrings:SiteIEConnectionString %>"
    SelectCommand="SELECT [IdSysCiclu], [Ciclu]+'('+[CicluEN]+')' as ItemText FROM [SysCiclu] ORDER BY [Ciclu]">
</asp:SqlDataSource>
<asp:SqlDataSource ID="cursSqlGetPlanInv" runat="server" ConnectionString="<%$ ConnectionStrings:SiteIEConnectionString %>"
    SelectCommand="SELECT [IdPlanInvatamant], convert(nvarchar(4),[An])+'-'+convert(nvarchar(4),[An]+1) as ItemText FROM [PlanInvatamant] ORDER BY [An]">
</asp:SqlDataSource>
<asp:SqlDataSource ID="cursSqlGetSysTipDisciplina" runat="server" ConnectionString="<%$ ConnectionStrings:SiteIEConnectionString %>"
    SelectCommand="SELECT [IdSysTipDisciplina], [Tip]+'('+[Descriere]+')' as ItemText FROM [SysTipDisciplina] ORDER BY [Tip]">
</asp:SqlDataSource>
<%--SysCategorieDisciplina--%>
<asp:SqlDataSource ID="cursSqlGetSysCategorieDisciplina" runat="server" ConnectionString="<%$ ConnectionStrings:SiteIEConnectionString %>"
    SelectCommand="SELECT [IdSysCategorieDisciplina], [CategorieDisciplina]+'('+[Descriere]+')' as ItemText FROM [SysCategorieDisciplina] ORDER BY [CategorieDisciplina]">
</asp:SqlDataSource>
<table>
    <tr>
        <td>
            An studiu:&nbsp
            </td>
        <td>
            <asp:DropDownList ID="ddlAnStudiu" runat="server" Width="120px">
                <asp:ListItem Selected="True">1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                <asp:ListItem>3</asp:ListItem>
            </asp:DropDownList>
        </td>
        <td>
            &nbsp;</td>
        <td>
            Semestru:&nbsp</td>
        <td>
            <asp:DropDownList ID="ddlSemestru" runat="server" Width="120px">
                <asp:ListItem Selected="True">1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>
            Ciclu:&nbsp
            </td>
        <td>
            <asp:DropDownList ID="ddlCiclu" runat="server" DataField="IdSysCiclu" DataSourceID="cursSqlGetCiclu"
                DataTextField="ItemText" DataValueField="IdSysCiclu" Width="120px">
            </asp:DropDownList>
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            Plan invatamant:</td>
        <td>
            <asp:DropDownList ID="ddlPlanInv" runat="server" DataField="IdPlanInvatamant" DataSourceID="cursSqlGetPlanInv"
                DataTextField="ItemText" DataValueField="IdPlanInvatamant" Width="120px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>
            Tip disciplina:&nbsp
            </td>
        <td>
            <asp:DropDownList ID="ddlTipDisciplina" runat="server" DataField="IdSysTipDisciplina"
                DataSourceID="cursSqlGetSysTipDisciplina" DataTextField="ItemText" 
                DataValueField="IdSysTipDisciplina" Width="120px">
            </asp:DropDownList>
        </td>
        <td>
            &nbsp;</td>
        <td>
            Categorie:&nbsp</td>
        <td>
            <asp:DropDownList ID="ddlCategorie" runat="server" DataField="IdSysCategorieDisciplina"
                DataSourceID="cursSqlGetSysCategorieDisciplina" DataTextField="ItemText" 
                DataValueField="IdSysCategorieDisciplina" Width="120px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="style1">
            Nr. puncte credit:&nbsp
            </td>
        <td class="style1">
            <asp:DropDownList ID="ddlNrPuncteCredit" runat="server" Width="120px">
                <asp:ListItem Selected="True">1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                <asp:ListItem Value="3"></asp:ListItem>
                <asp:ListItem>4</asp:ListItem>
                <asp:ListItem>5</asp:ListItem>
                <asp:ListItem>6</asp:ListItem>
                <asp:ListItem>7</asp:ListItem>
                <asp:ListItem>8</asp:ListItem>
                <asp:ListItem>9</asp:ListItem>
                <asp:ListItem>10</asp:ListItem>
            </asp:DropDownList>
        </td>
        <td class="style1">
            &nbsp;</td>
        <td class="style1">
            &nbsp;</td>
        <td class="style1">
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="5">
            <table>
                <tr>
                    <td>
                        C:&nbsp
                        <asp:DropDownList ID="ddlC" runat="server" Width="120px">
                            <asp:ListItem Selected="True">1</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem Value="3"></asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>6</asp:ListItem>
                            <asp:ListItem>7</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        S:&nbsp
                        <asp:DropDownList ID="ddlS" runat="server" Width="120px">
                            <asp:ListItem Selected="True">1</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem Value="3"></asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>6</asp:ListItem>
                            <asp:ListItem>7</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        L/P:&nbsp
                        <asp:DropDownList ID="ddlLP" runat="server" Width="120px">
                            <asp:ListItem Selected="True">1</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem Value="3"></asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>6</asp:ListItem>
                            <asp:ListItem>7</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            Pdf:
        </td>
        <td colspan="4">
            <asp:FileUpload ID="FileUpload1" runat="server" />
&nbsp;(Only *.pdf files)</td>
    </tr>
</table>
<telerik:RadTabStrip runat="server" ID="RadTabStrip1" SelectedIndex="0" MultiPageID="RadMultiPage">
    <Tabs>
        <telerik:RadTab Text="Romana"  Selected="True">
        </telerik:RadTab>
        <telerik:RadTab Text="Engleza">
        </telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPage" runat="server" SelectedIndex="0" 
    BackColor="White">
    <telerik:RadPageView ID="RadPageView1" runat="server">
        <table>
            <tr>
                <td>
                    Titlu:
                </td>
                <td>
                    <asp:TextBox ID="txtTitlu" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Descriere:
                </td>
                <td>
                </td>
            </tr>
        </table>
        <telerik:RadEditor ID="Descriere" SkinID="BasicSetOfTools" Width="100%" runat="server"
            Height="400px">
        </telerik:RadEditor>
    </telerik:RadPageView>
    <telerik:RadPageView ID="RadPageView2" runat="server">
        <table>
            <tr>
                <td>
                    Titlu:
                </td>
                <td>
                    <asp:TextBox ID="txtTitluEN" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Descriere:
                </td>
                <td>
                </td>
            </tr>
        </table>
        <telerik:RadEditor ID="DescriereEN" SkinID="BasicSetOfTools" Width="100%" runat="server"
            Height="400px">
        </telerik:RadEditor>
    </telerik:RadPageView>
</telerik:RadMultiPage>
<table>
    <tr>
        <td align="right">
            <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>'>
            </asp:Button>
            <asp:Button ID="btnInsert" Text="Insert" runat="server" CommandName="PerformInsert"
                Visible='<%# DataItem is Telerik.Web.UI.GridInsertionObject %>'></asp:Button>
            &nbsp;
            <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                CommandName="Cancel"></asp:Button>
        </td>
    </tr>
</table>
